home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_22_1988_Transactor_Publishing.d64
/
handy hexer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
303b
|
13 lines
1 rem hex print routine. entry points:
2 rem line 10, 4 digit hex value
3 rem line 30, 2 digit with $
4 rem line 40, 2 digit without $
5 rem put value to print in 'a'
6 :
10 b=int(a/256):gosub 30
20 b=a-b*256:gosub 40:return
30 print "$";
40 x=int(b/16):gosub 50:x=b-x*16
50 printmid$("0123456789abcdef",x+1,1);
60 return